
import React from 'react'
import {Tooltip} from 'antd'
import css from './index.scss'

export default ({text,width=150,tipText}) => {
  return <Tooltip title={tipText||text}>  
  <div type="link" style={{width:width}} className={css.commentText}>{text}</div>
</Tooltip>
}